package com.ftg.mall.base.util.desensitization;

/**
 *  手机号脱敏
 * @author 高铭泽
 * @createTime 2022/11/14
 */

public class MobilePhoneDesensitization extends AbstractDesensitization {

    @Override
    public String serialize(String value) {
        return value.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
    }
}
